<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="apple-mobile-web-app-title" content="IE=Edge,chrome=1" />
  <meta name="format-detection" content="telephone=yes"/>
  <title>移动大掌柜APP</title>
  <style type="text/css">
    body {
      margin: 0;
      padding: 0;
      position:relative;
      background: #000000;
    }
    .intro-1page-wrap {
      position: relative;
    }
    .intro-1page-wrap .img {
      width: 100%;
    }
    .intro-1page-wrap .btn-url {
      position: absolute;
      left: 0;
      right: 0;
      margin: 0 auto;
      bottom: 18.5%;
      width: 28vw;
      height: 25vw;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    .intro-1page-wrap .btn-url a {
      display: block;
      width: 100%;
      height: 100%;
      opacity: 0;
    }
  </style>
</head>
<body>
  <div class="intro-1page-wrap">
    <!-- <img class="img" src="/upload/dzg_introduction/kzjz.png" /> -->
    <img class="img" src="https://dzgtest.vpclub.cn/upload/dzg_introduction/kzjz.png" />
    <div id="tel" class="btn-url">
      <!-- <a href="tel:10086"></a> -->
    </div>
  </div>
  <script type="text/javascript" src="../template/assets/js/jquery.min.js"></script>
  <script type="text/javascript" src="../template/website/js/app.js"></script>
  <script type="text/javascript">
    $(function() {
      $('#tel').on('click', function(e) {
        console.log(getParamValue('inApp'));
        if ('' + getParamValue('inApp') === '1' && isIOS()) {
          alert('请点击右上角分享按钮，分享到微信打开。');
        } else {
          var a = document.createElement('a');
          a.href = 'tel:10086';
          // console.log(a);
          a.click();
        }
      });
    });
    //返回页面分享的参数,当当前页面有canAppShare=1参数时需要添加此函数resShareParm(函数名不能改，客户端已经只调用这个函数)
    function resShareParm() {
      var regText1 = "saleType=1";
      var regText2 = "saleType=3";
      var regS1 = new RegExp(regText1, "gi");
      var regS2 = new RegExp(regText2, "gi");
      var urlpath = window.location.href.replace(regS1, "saleType=2").replace(regS2, "saleType=4").replace(/\&inApp\=1/gi, '');//修改平台类型(原生分享出去统一改为分享平台)：1（直销通代客下单）改为 2（直销通分享页面购买） 3（微店原生购买）改为 4（微店分享购买）
      var imgpath = window.location.origin + '/upload/dzg_introduction/dzg_logo.png';
      var title = '抗震救灾 和你“移”起——大掌柜在行动';
      var description = '需要寻亲友/报平安请拨打10086平安热线，我们会竭力为您提供帮助！';
      // - TODO: 这个if当下次安卓版本发布后要去掉
      if (isAndroid() && ('' + getParamValue('androidProblem') === '1')) {
        description = '抗震救灾 和你“移”起——大掌柜在行动';
      }
      var data = "url=" + urlpath + "&&img=" + imgpath + "&&title=" + title + "&&description=" + description + "";
      return data;
    }
    function isWechat() {
      return /micromessage/i.test(window.navigator.userAgent + window.navigator.platform);
    }
  </script>
</body>